package com.qqn.acknowledge.reflection;

/**
 * @ClassName: Address
 * @Description: Address
 * @Author: 刘神仙
 * @Date: 2025-03-26 07:28
 */
public class Address {
    private String street;
    private String postCode;

    public Address() {
    }

    public Address(String postCode, String street) {
        this.postCode = postCode;
        this.street = street;
    }

    public String getStreet() {
        return street;
    }

    public String getPostCode() {
        return postCode;
    }

    @Printable
    public void printStreet() {
        System.out.println("Address street: " + street);
    }

    @Printable
    public void printPostCode() {
        System.out.println("Address postCode: " + postCode);
    }
}
